<script type="text/html" id="tag-answer">
    <%for(var i = 0; i < data.length; i++) {%>
        <div>
            <h3 class="question"><%=data[i].content%><span class="time"><%=data[i].time%></span></h3>
            <%for(var k = 0; k < data[i].answer.length; k++) {%>
                <div class="answer">
                    <div class="words">
                        <div class="left">
                            <a href="javascript:void(0);" title="点击进入商家详情">
                                <img class="portrait-72" src="../img/banner/bn4.jpg" alt="logo-name">
                            </a>
                            <a href="javascript:void(0);" title="点击进入商家详情" class="name"><%=data[i].answer[k].user.name%></a>
                            <a href="javascript:void(0);" title="点击进入商家详情" class="prop">
                                <%if(data[i].answer[k].user.type==0) {%> 用户
                                <%}else{%> 店主
                                <%}%>
                            </a>
                            <%if(data[i].answer[k].user.vercard==0) {%>
                                <span><img src="../img/icons/idcardCi.png" alt="身份认证" title="身份已认证"></span>
                            <%}%>
                        </div>
                        <div class="right">
                            <p class="right-content">
                                <%=data[i].answer[k].content%>
                            </p>
                            <p class="time"><%=data[i].answer[k].time%></p>
                            <button type="button" class="replyBtn">回复</button>
                        </div>
                    </div>
                </div>
            <%}%>
        </div>
    <%}%>
</script>
<script type="text/html" id="tag-comment">
    <%for(var i = 0; i < data.length; i++) {%>
        <div class="words">
            <div class="left">
                <a href="javascript:void(0);" title="点击进入商家详情"><img class="portrait-72" src="../img/potrait.jpg" alt="logo-name"></a>
                <a href="javascript:void(0);" title="点击进入商家详情" class="name"><%=data[i].user.name%></a>
                <a href="javascript:void(0);" title="点击进入商家详情" class="prop">
                    <%if(data[i].user.type == 0)%> 用户
                    <%else%> 旅店
                </a>
                <span>
                    <%if(data[i].vercard != 0) {%>
                        <img src="../img/icons/idcardCi.png" alt="身份认证" title="身份已认证">
                    <%}%>
                </span>
            </div>
            <div class="right">
                <p class="right-content">
                    <%=data[i].content%>
                </p>
                <p class="time">
                    <%=data[i].time%>
                </p>
            </div>
        </div>
    <%}%>
</script>
<script type="text/html" id="tag-record">
    <table class="record-table">
        <tr class="blueCommon table-header">
            <th>招聘名称</th>
            <th>发布时间</th>
            <th>投递人数</th>
            <th>评论量</th>
            <th>问答量</th>
            <th>状态</th>
        </tr>
    <%for(var i = 0; i < data.length; i++) {%>
        <tr <%if(i == 0){%>  class="table-content" <%}%> >
            <td><%=data[i].name%></td>
            <td><%=data[i].time%></td>
            <td><%=data[i].number%></td>
            <td><%=data[i].content%></td>
            <td><%=data[i].answer%></td>
            <%if(data[i].state == 0) {%>
                <td><a class="grayCommon" href="">招聘结束</a></td>
            <%}else{%>
                <td><a class="blueCommon" href="">报名中</a></td>
            <%}%>
        </tr>
    <%}%>
        </table>
</script>